package com.sec.android.app.myfiles.feature.privatemode;

import android.content.Context;
import android.os.IBinder;

import com.sec.android.app.myfiles.feature.PrivateModeMgr.PrivateStateListener;
import com.sec.android.app.myfiles.log.Log;

public class PrivateModeImp {

    private Context mContext;
    private IBinder mPrivateModeBinder = null;
    private PrivateStateListener mPrivateStateListener;

    public PrivateModeImp(Context context) {
        mContext = context;
    }

    /**
     * check private mode is on or off
     *
     * @return boolean
     */
    public boolean isPrivateMode() {
        return false;
    }

    /**
     * check private mode directory mounted or not
     *
     * @return boolean
     */
    public boolean isPrivateDirMounted() {
        return false;
    }

    /**
     * Check that the file is private mode file or not with real file path
     *
     * @return Returns true if file is in '/storage/Private...'
     */
    public boolean isPrivateModePath(String path) {
        boolean bRet = false;

        if (path != null) {
            if (path.startsWith(getRootDir())) {
                bRet = true;
            }
        }

        return bRet;
    }

    /**
     * check private mode ready or not
     *
     * @return Returns true if private mode ready
     */
    public boolean isReady() {
        return true;
    }

    /**
     * Returns personal mode root directory Now, "/storage/Private" but it could
     * be changed!
     *
     * @return directory for personal mode file
     */
    public String getRootDir() {
        return "";
    }

    public void createMgr(PrivateStateListener listener) {
    }

    public void clearMgr(boolean bSucess) {
        clearBinder(bSucess);
        mPrivateStateListener = null;
    }

    public void clearBinder(boolean bSucess) {
    }
}
